package com.etoak.controller;

import com.etoak.service.GitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/git")
public class GitController {

    @Autowired
    GitService gitService;

    @RequestMapping("/hello")
    public String hello() {
        return gitService.hello();
    }


    @RequestMapping("/morning")
    public void morning(){
        gitService.morning();
    }

}
